]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Revert "workspacesView: Work around spurious allocation changes"
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 12 Mar 2020 12:43:07 +0000 (13:43 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 23 Jun 2020 19:05:05 +0000 (19:05 +0000)
We now found the underlying bug: The ControlsManager (which causes the
bad call to `_updateWorkspacesFullGeometry()`) is getting (re-)allocated
while we add the view to the overviewGroup actor because the
overviewGroup is already visible and the view is immediately getting
mapped by `clutter_actor_add_child_internal()`. That causes a
resource-scale calculation and that indirectly causes a call to
`_clutter_stage_maybe_relayout()` (explained more detailed in the last
commit).

So now that we got rid of the immediate relayout happening when mapping
the view, we can revert this fix.

This reverts commit 6cc19ee6f05102baef39b8a1bec73eff06699879.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1315

js/ui/workspacesView.js

index a4ed18d486c9d8af0d992201fff73bf6d178068a..cc0d4f24b79e08a265728a7798441763307408f7 100644 (file)
@@ -691,15 +691,10 @@ class WorkspacesDisplay extends St.Widget {
             else
                 view = new WorkspacesView(i, this._scrollAdjustment);
 
-            // HACK: Avoid spurious allocation changes while updating views
-            view.hide();
-
             this._workspacesViews.push(view);
             Main.layoutManager.overviewGroup.add_actor(view);
         }
 
-        this._workspacesViews.forEach(v => v.show());
-
         if (this._fullGeometry)
             this._syncWorkspacesFullGeometry();
         if (this._actualGeometry)